<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" type="text/css" href="../../static/css/jpetstore.css"/>
    <meta charset="UTF-8">
    <title>All Goods</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css" media="screen" />

</head>
<body>

<div th:replace="common/left">

</div>
<div id="BackLink">
    <a href="/admin_catalog/admin_view">Return to Backstage Main Menu</a>
</div>
<div id="bCatalog">

    <h2 th:text="${category.name}">category的name属性</h2>

    <table id="CPI">
        <tr>
            <th>Product ID</th>
            <th>Name</th>
            <th>&nbsp&nbsp&nbsp</th>
        </tr>
        <tr th:each="product:${productList}">

            <td>
                <a th:href="@{/admin_catalog/admin_viewProduct?productId=}+${product.productId}" th:text="${product.productId}">Product
                    ID</a>
                <!--<a th:href="@{/catalog/viewProduct?productId=}+${product.productId}" th:text="${product.productId}>productId</a>-->
            </td>
            <td th:text="${product.name}">productname</td>
            <td>
                <a class="Button" th:href="'/admin_catalog/admin_changeProduct?productId='+${product.productId}"> 修改</a>
                <a class="Button" th:href = "'/admin_catalog/admin_deleteProduct?productId='+${product.productId}"> 删除</a>
            <!--<a th:href="'../cart/addItemToCart?workingItemId='+${item.itemId}">Add to cart</a>-->
            <!--<a class="Button" th:href = "'/cart/addItemToCart?workingItemId='+${item.itemId}"> Add to Cart</a>-->
        </td>
        </tr>
        <tr>
            <td><a class="Button" th:href="'addProductForm?categoryId='+${category.categoryId}">添加</a></td>
        </tr>

    </table>

</div>

<!--<div id="Main">-->
<div id="Separator">&nbsp;</div>
<!--</div>-->


</body>
</html>